<template>
  <!-- 这是封装的主要内容 -->
  <el-card>
    <div class="g-title">
      <slot name="title"></slot>
    </div>
    <div class="g-main">
      <slot name="main"></slot>
    </div>
  </el-card>
</template>

<script>
export default {}
</script>

<style lang="less" scoped>
.g-title {
  border-bottom: 1px solid #ccc;
  padding: 10px 0;
}
</style>
